package com.example.ibsp_demo.pojo.entity.admin;

import java.time.LocalDateTime;

public class Admin {

    private Integer aid; // 对应数据库字段 `aid`
    private String adminAccount;
    private String adminPassword;
    private Integer permissionLevel;
    private LocalDateTime createTime;

    public Admin() {
    }

    public Admin(Integer aid, String adminAccount, String adminPassword, Integer permissionLevel, LocalDateTime createTime) {
        this.aid = aid;
        this.adminAccount = adminAccount;
        this.adminPassword = adminPassword;
        this.permissionLevel = permissionLevel;
        this.createTime = createTime;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }

    public Integer getPermissionLevel() {
        return permissionLevel;
    }

    public void setPermissionLevel(Integer permissionLevel) {
        this.permissionLevel = permissionLevel;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "aid=" + aid +
                ", adminAccount='" + adminAccount + '\'' +
                ", adminPassword='" + adminPassword + '\'' +
                ", permissionLevel=" + permissionLevel +
                ", createTime=" + createTime +
                '}';
    }
}
